﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;
using ZX.Web.UI.Controls;

namespace ZX.WebApp
{
    public partial class LoginOut : BasePage
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            FormsAuthentication.SignOut();
            Session["User"] = null;
            Session["IsOutSite"] = null;
            Session["vcode"] = null;
            Response.Buffer = true;
            Response.Cache.SetNoStore();    //设置Cache-Control: no-store HTTP标头
            Response.Cache.SetNoServerCaching();    //停止当前响应的所有源服务器缓存
            Response.Redirect("Login.aspx");
            //Response.Write("<script>location.href('Login.aspx');event.returnValue=false;</scrip>");
        }
    }
}